Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(shadowFind): fix issues with retry-ability and $.find semantics #26

Merged
merged 1 commit into from
Dec 25, 2019

Conversation

DesignByOnyx
Copy link
Contributor

@DesignByOnyx DesignByOnyx commented Dec 17, 2019

This closes #25

This uses the jQuery selector engine (Cypress.$) which plays nicely with Cypress' internals and allows Cypress' "retry" logic to work as expected. This also enables the semantics of $.find such that you can use descendant selectors and query multiple different contexts and get a single collection back.

I have been testing this on a project which uses multiple levels of shadow dom nesting with asynchronously loaded custom components... and it works nicely. When I get time I can add tests.

Copy link
Owner

@abramenal abramenal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@abramenal abramenal merged commit 0a619e1 into abramenal:master Dec 25, 2019
@mcMickJuice
Copy link

Does this address my comment here #14 (review)

Do all shadow* functions work correctly now with retry-ability?

@DesignByOnyx
Copy link
Contributor Author

DesignByOnyx commented Jan 6, 2020

@mcMickJuice - the shadowFind, and shadowContains methods should now work much better with retry-ability. If you notice a method which is not retrying as you expect, please open an issue and I will try to address it ASAP. Make sure you are on v1.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] - cannot find items in light dom of host elements
3 participants